package a.j.b;

import a.c.e;
import a.j.g;
import a.j.*;

import java.awt.*;
import java.awt.geom.Rectangle2D;

abstract class a
  extends a.j.u
  implements v.d_
{
  pg e;
  f f;
  
  public void a(pg parampg, v paramv, ld paramld)
  {
    int i = f.Wb;
    if (i == 0)
    {
      if ((paramld instanceof f))
      {
        this.e = parampg;
        this.f = ((f)paramld);
        if (i != 0) {
          break label46;
        }
      }
    }
    else if (!f.Vb) {
      return;
    }
    this.e = null;
    label46:
    this.f = null;
  }
  
  public Cursor c(ng paramng)
  {
    return null;
  }
  
  public void d()
  {
    g();
    super.d();
  }
  
  void g()
  {
    this.e = null;
    this.f = null;
  }
  
  boolean d(ng paramng)
  {
    if (f.Wb == 0) {}
    return paramng.f() == 1;
  }
  
  boolean e(ng paramng)
  {
    int i = f.Wb;
    if ((i != 0) || (paramng.c() == 501)) {
      if (i != 0) {}
    }
    return d(paramng);
  }
  
  boolean f(ng paramng)
  {
    int i = f.Wb;
    if ((i != 0) || ((paramng.c() == 500) && ((i != 0) || (paramng.g() == 1)))) {
      if (i != 0) {}
    }
    return d(paramng);
  }
  
  boolean g(ng paramng)
  {
    int i = f.Wb;
    if ((i != 0) || ((paramng.c() == 500) && ((i != 0) || (paramng.g() == 2)))) {
      if (i != 0) {}
    }
    return d(paramng);
  }
  
  boolean a(f paramf, f.n_ paramn_, double paramDouble1, double paramDouble2, boolean paramBoolean)
  {
    int i = f.Wb;
    if (i == 0)
    {
      if (paramBoolean) {
        if (i != 0) {
          break label111;
        }
      }
    }
    else if (paramn_.k() == 0)
    {
      double d = paramf.eb().e(0).h().getY();
      Rectangle2D localRectangle2D2 = paramn_.h();
      if (i != 0) {
        break label176;
      }
      if (d <= localRectangle2D2.getY()) {
        break label175;
      }
      localRectangle2D2.setFrame(localRectangle2D2.getX(), localRectangle2D2.getY(), localRectangle2D2.getWidth(), d - localRectangle2D2.getY());
      return localRectangle2D2.contains(paramDouble1, paramDouble2);
    }
    label111:
    a.d.u localu = paramn_.i();
    if (i == 0) {
      if (localu.b > 0.0D)
      {
        Rectangle2D localRectangle2D1 = paramn_.h();
        localRectangle2D1.setFrame(localRectangle2D1.getX(), localRectangle2D1.getY(), localRectangle2D1.getWidth(), localu.b);
        return localRectangle2D1.contains(paramDouble1, paramDouble2);
      }
    }
    label175:
    label176:
    return false;
  }
  
  boolean a(f paramf, f.p_ paramp_, double paramDouble1, double paramDouble2, boolean paramBoolean)
  {
    int i = f.Wb;
    if (i == 0)
    {
      if (paramBoolean) {
        if (i != 0) {
          break label111;
        }
      }
    }
    else if (paramp_.n() == 0)
    {
      double d = paramf.eb().c(0).h().getX();
      Rectangle2D localRectangle2D2 = paramp_.h();
      if (i != 0) {
        break label176;
      }
      if (d <= localRectangle2D2.getX()) {
        break label175;
      }
      localRectangle2D2.setFrame(localRectangle2D2.getX(), localRectangle2D2.getY(), d - localRectangle2D2.getX(), localRectangle2D2.getHeight());
      return localRectangle2D2.contains(paramDouble1, paramDouble2);
    }
    label111:
    a.d.u localu = paramp_.i();
    if (i == 0) {
      if (localu.c > 0.0D)
      {
        Rectangle2D localRectangle2D1 = paramp_.h();
        localRectangle2D1.setFrame(localRectangle2D1.getX(), localRectangle2D1.getY(), localu.c, localRectangle2D1.getHeight());
        return localRectangle2D1.contains(paramDouble1, paramDouble2);
      }
    }
    label175:
    label176:
    return false;
  }
  
  e a(sc paramsc)
  {
    int i = f.Wb;
    if (i == 0) {
      if (paramsc.x()) {
        return paramsc.m();
      }
    }
    if ((i != 0) || (paramsc.w())) {
      return paramsc.p().gb();
    }
    return null;
  }
  
  static ld a(g paramg, e parame)
  {
    return m.a(paramg, parame);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.b.a

 * JD-Core Version:    0.7.0.1

 */